<?php if ($connections->count() == 0): ?>
    <div class="no-items">You're currently not following any one.</div>
<?php endif; ?>
<?php foreach ($connections as $connection): ?>
    <?php $initiator = $connection->getInitiator() ?>
    <?php $doctor = $initiator->getDoctor() ?>
    <div class="connection-row">
        <div class="inline-block">
            <div class="connection-photo">
                <a href="<?php echo url_for('@profile_public?slug=' . $initiator->getSlug()) ?>"><?php include_partial("doctor_show/potrait", array("doctor" => $doctor, "height" => 32)) ?></a>
            </div>
        </div>
        <div class="inline-block connection-info">
            <a href="<?php echo url_for('@profile_public?slug=' . $initiator->getSlug()) ?>" class="name-title"><?php echo $initiator ?></a>
        </div>
        <div class="inline-block member-actions">                 
            <?php $connection = $initiator->getConnection($sf_user->getUserId()) ?>
            <div class="connet member-<?php echo $connection['relationship'] ?>" userid="<?php echo $initiator->getId() ?>" status="<?php echo $connection['status'] ?>"><?php echo ucfirst($connection['relationship']) ?></div>
        </div>                                
    </div>
<?php endforeach; ?>